﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ProtoBuf;

namespace Omron.Framework.Networking.Packets
{
	[ProtoContract]
	public struct ServerInfo
	{
		[ProtoMember(1)]
		public int Version; // DO NOT EVER CHANGE THIS PROTOMEMBER ID! All clients need to understand this field regardless of version.

		[ProtoMember(2)]
		public bool IsPrivate;

		[ProtoMember(3)]
		public bool IsInGame;

		[ProtoMember(4)]
		public GameType GameType;

		[ProtoMember(5)]
		public FactionInfo[] Factions;
	}

	[ProtoContract]
	public enum GameType : byte
	{
		[ProtoEnum]
		Deathmatch = 1,

		[ProtoEnum]
		Campaign = 2
	}
}
